<template>
  <img
    :src="url"
    :style="{ width: size + 'px', height: size + 'px' }"
    class="avatar-img"
  />
</template>
<script>
export default {
  props: {
    url: {
      type: String,
      require: true,
    },
    size: {
      type: Number,
      default: 160,
    },
  },
}
</script>
<style>
.avatar-img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
</style>
